home *** CD-ROM | disk | FTP | other *** search
- <?xml version="1.0" encoding="utf-8" ?>
- <!DOCTYPE stack PUBLIC "-//Apple, Inc.//DTD stack V 2.0//EN" "" >
- <stack>
- <name>in.0</name>
- <id>-1</id>
- <cardCount>1</cardCount>
- <cardID>2933</cardID>
- <listID>2414</listID>
- <cantModify><false /></cantModify>
- <cantDelete><false /></cantDelete>
- <cantAbort><false /></cantAbort>
- <cardSize>
- <width>512</width>
- <height>342</height>
- </cardSize>
- <script>_______________________________________________
- Macintosh File and Creator Type Registration
- _______________________________________________
-
- on resumeStack
- if the userlevel < 2 then set the userlevel to 2
- end resumeStack
-
- on openStack
- if the cantmodify of this stack is true then
- answer "This stack can't be used from the CD-ROM." & return & ¬
- "Please copy “" & (the short name of this stack) && ¬
- "” to your hard drive."
- erasePath
- if the number of lines of the stacks > 1
- then send "doMenu Close Stack" to hyperCard
- else send "doMenu Quit HyperCard" to hyperCard
- exit openStack
- end if
-
- global gDIAFromDIA
- if gDIAFromDIA is "true" then
- hide cd btn "hider"
- else
- show cd btn "hider"
- end if
- resumeStack
-
- global gDIAWhereForms
- if gDIAWhereForms is empty then
- get the value of word 2 of long name of this stack
- put it into gDIAWhereForms
- repeat
- if last char of gDIAWhereForms is ":" then exit repeat
- delete last char of gDIAWhereForms
- end repeat
- checkStacksVar gDIAWhereForms
- end if
- end openStack
-
- function linefor string,container
- get offset(string,container)
- if it = 0 then return 0
- return the number of lines in char 1 to it of container
- end linefor
-
- on erasePath
- global stacks
- put the value of word 2 of long name of this stack into stackPath
- repeat
- if last char of stackPath = ":" then exit repeat
- delete last char of stackPath
- end repeat
- get linefor (stackPath, Stacks)
- delete line it of Stacks
- lock screen
- deleteStackPath stackPath
- unlock screen
- end erasePath
-
- on deleteStackPath pathName
- set lockmessages to true
- put the value of word 2 of long name of this stack into thisStack
- go cd "stacks" of stack "home"
- if cantmodify of stack "Home" is true
- then set cantmodify of stack "Home" to false
- get linefor (pathName, bg fld "paths")
- delete line it of bg fld "paths"
- go stack thisStack
- set lockmessages to false
- end deleteStackPath
-
- on checkStacksVar pathName
- global stacks
- if pathName is not in stacks then
- set lockscreen to true
- set lockmessages to true
- put the value of word 2 of long name of this stack into destination
- go cd "stacks" of stack "Home"
- if cantmodify of stack "Home" is true
- then set cantmodify of stack "Home" to false
- if last char of Stacks is return then
- put pathName & return after bg fld "paths"
- put pathName & return after stacks
- else
- put return & pathName & return after bg fld "paths"
- put return & pathName & return after stacks
- end if
- go stack destination
- set lockmessages to false
- set lockscreen to false
- end if
- end checkStacksVar
-
- on closeStack
- global gDIAFromDIA
- if gDIAFromDIA is "true" then put empty into gDIAFromDIA
- if (the freeSize of this stack > 0) ¬
- and (the cantmodify of this stack is false) then
- send "doMenu Compact Stack" to HyperCard
- end if
- end closeStack
-
- function headerInfo
- put return & "CREATOR/FILE TYPE Registration Request (" & XVersion (1) & ")" into headMsg
- put return & "............................................................................" ¬
- & return after headMsg
- return headMsg
- end headerInfo
-
- function customerInfo --gets all of the customer's information
- put return & "•• CONTACT INFORMATION ••" & return & return into contactInfo
- put "NAME: " & bg fld "Name" & return after contactInfo
- put "COMPANY: " & bg fld "Company" & return after contactInfo
- put "ADDRESS: " & bg fld "Address" & return after contactInfo
- put "TELEPHONE: " & bg fld "Phone" & return after contactInfo
- put "APPLELINK: " & bg fld "AppleLink" & return after contactInfo
- put return & "PRODUCT NAME: " & bg fld "Product Name" & return after contactInfo
- put "............................................................................" ¬
- & return after contactInfo
- return contactInfo
- end customerInfo
-
- function signatureInfo
- put return & "•• Signatures ••" & return & return into sigInfo
- put "Alphanumeric Code Hexadecimal Code" & return after sigInfo
- put "----------------- ----------------" & return after sigInfo
- repeat with i = 1 to number of lines of bg fld "Signatures"
- if line i of bg fld "Signatures" is not empty
- then put line i of bg fld "Signatures" & " " ¬
- & StrToHex3 (line i of bg fld "Signatures") & return after sigInfo
- end repeat
- -- put bg fld "Signatures" after sigInfo
- put return & "............................................................................" ¬
- & return after sigInfo
- return sigInfo
- end signatureInfo
-
- function fileTypeInfo
- put return & "•• Custom File Types ••" & return & return into fTypeInfo
- put "Alphanumeric Code Hexadecimal Code" & return after fTypeInfo
- put "----------------- ----------------" & return after fTypeInfo
- repeat with i = 1 to number of lines of bg fld "Custom File Types"
- if line i of bg fld "Custom File Types" is not empty
- then put line i of bg fld "Custom File Types" & " " ¬
- & StrToHex3 (line i of bg fld "Custom File Types") & return after fTypeInfo
- end repeat
- -- put bg fld "Custom File Types" after fTypeInfo
- put return & "............................................................................" ¬
- & return after fTypeInfo
- return fTypeInfo
- end fileTypeInfo
-
- function resourceTypeInfo
- put return & "•• Custom Resource Types or Scrap Types ••" & return & return into rTypeInfo
- put "Alphanumeric Code Hexadecimal Code" & return after rTypeInfo
- put "----------------- ----------------" & return after rTypeInfo
- repeat with i = 1 to number of lines of bg fld "Custom Resource/Scrap Types"
- if line i of bg fld "Custom Resource/Scrap Types" is not empty
- then put line i of bg fld "Custom Resource/Scrap Types" & " " ¬
- & StrToHex3 (line i of bg fld "Custom Resource/Scrap Types") & return after rTypeInfo
- end repeat
- -- put bg fld "Custom Resource/Scrap Types" after rTypeInfo
- put return & "............................................................................" ¬
- & return after rTypeInfo
- return rTypeInfo
- end resourceTypeInfo
-
- on doHelp what
- if what is empty then exit doHelp
- if there is a cd fld (Help && what)
- then show cd fld (Help && what)
- else show bg fld (Help && what)
- end doHelp
- </script>
- <background id="2775" file="background_2775.xml" name="entry" />
- <card id="2933" file="card_2933.xml" marked="false" name="" owner="2775" />
- </stack>
-